﻿using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;

namespace 小说阅读.ViewModels
{
    public class MainWindowViewModel : BindableBase
    {
        private string _title = "小说阅读";

        public string Title
        {
            get { return _title; }
            set { SetProperty(ref _title, value); }
        }

        public DelegateCommand<string> Tab { get; set; }

        public MainWindowViewModel(IRegionManager regionManager)
        {
            Tab = new DelegateCommand<string>((a) =>
            {
                regionManager.Regions["ContentRegion"].RequestNavigate(a);
            });
        }
    }
}